package com.lxb.servicebase.exceptionhandler;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 自定义异常类
 * @author lixuebin
 * @createTime 2022/10/9 16:24
 */
@Data
@AllArgsConstructor //生成有参构造函数
@NoArgsConstructor  //生成无参构造函数
public class GuliException extends RuntimeException{

    @ApiModelProperty(value = "状态码")
    private Integer code;

    @ApiModelProperty(value = "异常信息")
    private String msg;
}
